package demo5;


public class Test {

    public static void main(String[] args) {
        Student student1 = new Student("1234");
        Student student2 = new Student("1234");
        System.out.println(student1.hashCode());
        System.out.println(student2.hashCode());
    }

    public static void main2(String[] args) {
        Student student1 = new Student("1234");
        Student student2 = new Student("1234");

        System.out.println(student1.equals(student2));
    }

    public static void test(Object obj){

    }
    public static void main1(String[] args) {
        test(new Student("1234"));
        test(new Person());
    }
}
